import request from '@/utils/request'

export function getWithdrawList(params) {
  return request({
    url: '/withDrawList',
    params
  })
}

export function addWithdrawData(data) {
  return request({
    url: '/withDrawList',
    data,
    method: 'POST'
  })
}

export function editWithdrawData(data) {
  return request({
    url: `/withDrawList/${data.id}`,
    data,
    method: 'PATCH'
  })
}

export function delWithdrawData(uid) {
  return request({
    url: `/withDrawList/${uid}`,
    method: 'DELETE'
  })
}
